package com.mh.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.DispatcherServlet;

@Component
public class DevTools implements InitializingBean {

    private static final Logger log = LoggerFactory.getLogger(DevTools.class);

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("jar class loader: {}", DispatcherServlet.class.getClassLoader());
        log.info("DevTools class loader: {}", DevTools.class.getClassLoader());
    }
}
